import scrapy


class Gamer520Spider(scrapy.Spider):
    name = "gamer520"
    async def start(self):
        for i in range(1, 944):
            yield scrapy.Request(f'https://www.gamer520.com/page/{i}')
            break

    def parse(self, response):
       ds = response.xpath('//div[@class="col-lg-1-5 col-6 col-sm-6 col-md-4 col-lg-3"]//h2/a')
       for d in ds:
           herf = d.attrib['href']
           title = d.attrib['title']

           yield scrapy.Request('herf',callback=self.parse2,meta={'title':title})
           break

    def parse2(self, response):
        pass